<template>
  <div>
    <h2>作用域插槽案例-my-tree-test</h2>
    <hr>
    <MyTreeTest :data="list">
      <template v-slot="{row}">
        《{{ row.name }}》
      </template>
    </MyTreeTest>
  </div>
</template>
<script>
import MyTreeTest from './MyTreeTest.vue'

export default {
  name: 'Mytest',
  components: { MyTreeTest },
  data () {
    return {
      list: [{
        id: 1,
        name: 'tom'
      }, {
        id: 2,
        name: 'jerry'
      }, {
        id: 3,
        name: 'spike'
      }]
    }
  }
}
</script>
